#ifndef REALDATATHREAD_H
#define REALDATATHREAD_H

#include <QThread>
#include <QString>
class realDataThread :public QThread
{
    Q_OBJECT

public:
    realDataThread(int&temperature,int&humidity,int&light,int&co2,int&pressure);
    void setData(int&temperature,int&humidity,int&light,int&co2,int&pressure);
protected:
    void run() override;
signals:
    void sendData(int temperature,int humidity,int light,int co2,int pressure);
private:
//    QString user_id;
//    QString device_id;
    int temperature;
    int humidity;
    int light;
    int co2;
    int pressure;
};

#endif // REALDATATHREAD_H
